//
//  NetworkConfig.swift
//  NetworkConfig
//
//  Created by Ben on 2021/9/7.
//

import Foundation

struct NetworkConfig {
    static var baseURL: String {
        #if DEBUG
            return "http://localhost:8080"
        #else
        return "http://localhost:8080"
        #endif
    }
    
    static let retryCount: Int = 1
    
    static let contentType = "application/json"
    
    static let decoder: JSONDecoder = {
        let jsonDecoder = JSONDecoder()
        return jsonDecoder
    }()
}
